package com.accesshollywood.notifications;

import java.io.IOException;
import java.util.ArrayList;

import org.newdawn.slick.openal.Audio;
import org.newdawn.slick.openal.AudioLoader;
import org.newdawn.slick.util.ResourceLoader;

import com.accesshollywood.email.Email;
import com.accesshollywood.grfxOrdering.basics.Users;
import com.accesshollywood.indexables.GrfxOrder;
import com.accesshollywood.indexables.User;

public class ChimeAlert {
	private static Audio chimeEffect;
	
	public static void setup(){
		try {
			chimeEffect = AudioLoader.getAudio("WAV", ResourceLoader.getResourceAsStream("res/sounds/brass3.wav"));
			chimeEffect.playAsSoundEffect(1.0f, 1.0f, false);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	
	private static void playChime(){
		chimeEffect.playAsSoundEffect(1.0f, 1.0f, false);
	}

	public static void orderAssigned() {
		 playChime();
	}

	public static void orderUnAssigned() {
		 playChime();
	}

	public static void orderModified() {
		 playChime();
	}

	public static void textEdited() {
		 playChime();
	}

	public static void photosChanged() {
		 playChime();
	}

	public static void footageChanged() {
		 playChime();
	}

	public static void deadlineChanged() {
		 playChime();
	}

	public static void deadlineApproaching() {
		 playChime();
	}

	public static void notesChanged() {
		 playChime();
	}

	public static void researchApproved() {
		 playChime();
	}

	public static void photoEditApproved() {
		 playChime();
	}

	public static void footageApproved() {
		 playChime();
	}

	public static void legalApproved() {
		 playChime();
	}

	public static void markedComplete() {
		 playChime();
	}

	public static void orderClosed() {
		 playChime();
	}

	public static void orderReopened() {
		 playChime();
	}
}
